package gui.tools.actions;

import gui.Frame;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.Icon;
import javax.swing.ImageIcon;

/**
 * Deletes all selected elements.
 */
@SuppressWarnings("serial")
public class EditVertexAction extends AbstractAction
{

   private static Icon icon = new ImageIcon("icons/editnode.png");
   private Frame frame;
   /** Create this action for the given frame */
   public EditVertexAction(Frame frame)
   {
      super("Edit Node",icon);
      this.frame = frame;
   }

   @Override
   public void actionPerformed(ActionEvent ae)
   {
      frame.removeListeners();
      frame.addEditVertexLister();

   }

}
